% temporaryfolder=addbs(oprop.appstartpath)+[temp\] *temporaryfolder=[temp\] fromdate=orequest.form('datefrom') todate=orequest.form('dateto') if isnull(fromdate) fromdate=NVL(orequest.querystring('datefrom'),'{}') endif if isnull(todate) todate=NVL(orequest.querystring('dateto'),'{}') endif set date ymd pdate1=ctod(fromdate) pdate2=ctod(todate) set date british usesafe('acctran') usesafe('glcodes') usesafe('accounts') openingbalancealias=sys(2015) closingbalancealias=sys(2015) SELECT [acctran] SET ORDER TO acdate retainedearnings=0 FILEstring=[
| DETAILS | DEBIT | CREDIT |
|---|---|---|
| ]+thisglname+[ | ]+TRANSFORM(glbalance,'999,999,999,999.99')+[ | |
| ]+thisglname+[ | ]+TRANSFORM(abs(glbalance),'999,999,999,999.99')+[ | |
| Retained Earnings | ]+TRANSFORM(ABS(retainedearnings),'999,999,999,999.99')+[ | |
| Retained Loss | ]+TRANSFORM(ABS(retainedearnings),'999,999,999,999.99')+[ | |
| Profit for the period | ]+TRANSFORM(ABS(profitfortheperiod),'999,999,999,999.99')+[ | |
| Loss for the period | ]+TRANSFORM(ABS(profitfortheperiod),'999,999,999,999.99')+[ | |
| OVER ALL TOTALS | ]+TRANSFORM(ABS(gldebits),'999,999,999,999.99')+[ | ]+TRANSFORM(ABS(glcredits),'999,999,999,999.99')+[ |
